<%@page import="com.wef.common.util.CommonMessageDomain"%>
<%@page import="com.gfa4j.query.Field"%>
<%@page import="com.wef.system.entity.domain.AclConfigEntryDomain"%>
<%@ include file="/pages/common/taglib.jsp"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<html>
	<head>
		<title></title>
		<%@include file="/styles/css_lib.jsp"%>
		<%@include file="/scripts/widgets/ext-2.2.1/css_lib.jsp"%>
		<%@include file="/scripts/widgets/gfa4ext/css_lib.jsp"%>
		
		<%@include file="/pages/common/js_global.jsp"%>
		<%@include file="/scripts/sdk/js_lib.jsp"%>
		<%@include file="/scripts/config/js_lib.jsp"%>
		<%@include file="/scripts/utils/js_lib.jsp"%>
		<%@include file="/scripts/i18n/js_lib.jsp"%>
		<%@include file="/scripts/widgets/ext-2.2.1/js_lib.jsp"%>
		<%@include file="/scripts/widgets/gfa4ext/js_lib.jsp"%>
		
		<script type="text/javascript">
			function beforeSaveFuncValidateGridEditForm(){
				var flg = validateAclConfigEntryEditForm(document.forms[1]);
				if(!flg) {
					return false;
				}else {
					return true;
				}
			}
		</script>
	</head>
	<body>
		<!--Content-->
		<div id="Content">
			<!--Right-->
			<div class="ModuleSearch">
				<div class="ModuleSearchBorder">
					<div class="ModuleSearchTitle">
						<g:label showColon="false" text="<%= CommonMessageDomain.TITLE_SERACH %>" />
					</div>
					<!--搜索模块-->
					<html:form action="/system/aclConfigEntry.do" styleId="aclConfigEntrySearchForm">
	
						<table width="100%" cellspacing="0" cellpadding="0">
							<tr>
								<td width="50" align="left"><g:label text="<%=AclConfigEntryDomain.propertyName_full %>" />
								</td>
								<td width="100" align="left"><g:text property="propertyName" condition="<%=Field.CONDITION_LIKE_ANYWHERE %>" />
								</td>
								<td>&nbsp;</td>
							</tr>
						</table>
	
						<!--按钮-->
						<div class="ModuleEditButton">
							<!--查询按钮 -->
							<g:button styleId="btnSearch" styleClass="search" type="button" text="<%=CommonMessageDomain.BUTTON_SEARCH %>" />
							<!--重置按钮 -->
							<g:button styleId="btnReset" styleClass="reset" type="reset" text="<%= CommonMessageDomain.BUTTON_RESET %>" onclick="javascript:FormUtils.clearForm('aclConfigEntrySearchForm');" />
							<!--新增按钮 -->
							<g:button styleId="btnNew" styleClass="add" type="button" text="<%=CommonMessageDomain.BUTTON_NEW %>" />
							<!--保存按钮 -->
							<g:button styleId="btnSave" styleClass="save" type="button" text="<%=CommonMessageDomain.BUTTON_SAVE %>" />
							<!--取消按钮 -->
							<g:button styleId="btnCancel" styleClass="calcel" type="button" text="<%=CommonMessageDomain.BUTTON_CANCEL  %>" />
							<!--删除按钮 -->
							<g:button styleId="btnDelete" styleClass="delete" type="button" text="<%=CommonMessageDomain.BUTTON_DELETE%>" />
						</div>
						<!--按钮-->
					</html:form>
				</div>
			</div>
			<!--搜索模块-->
	
			<!--信息显示模块-->
			<div class="ModuleGrid">
				<div class="ModuleGridBorder">
					<!-- 表格内容开始 -->
					<div id="divGrid1"></div>
					<!-- 表格内容 结束 -->
					<!--信息显示模块-->
				</div>
			</div>
	
			<div>
				<!-- 编辑区域 -->
				<div class="ModuleEdit">
					<div class="ModuleEditBorder" id="aclConfigEntryEditFormDiv">
						<div class="ModuleSearchTitle">
							<g:label showColon="false" text="<%= CommonMessageDomain.TABEL_EDIT %>" />
						</div>
						<html:form action="/system/aclConfigEntry.do" styleId="aclConfigEntryEditForm">
	
							<table class="ModuleEditInput">
								<tr>
									<html:hidden property="aclConfigEntryId" styleId="aclConfigEntryId" />
									<td><g:label text="<%=AclConfigEntryDomain.propertyName_full %>" allowBlank="false" />
									</td>
									<td><g:text style="width:220px" property="propertyName" />
									</td>
								</tr>
							</table>
						</html:form>
					</div>
				</div>
				<html:javascript formName="aclConfigEntryEditForm" />
				<!-- 编辑区域 -->
			</div>
	</body>

<ge:body>
	<ge:window id="win">
		<ge:grid.baseGrid queryObjectName="com.wef.system.entity.AclConfigEntry" id="divGrid1" readerFields="aclConfigEntryId,propertyName" searchFormId="aclConfigEntrySearchForm" searchBtnId="btnSearch" newBtnId="btnNew" saveBtnId="btnSave" deleteBtnId="btnDelete" cancelBtnId="btnCancel" editFormId="aclConfigEntryEditForm" dwrService="AclConfigEntryService" dwrMethod="saveOrUpdateAclConfigEntrys" loadMask="true" bodyStyle="width:100%" autoWidth="true" pagingPos="top" allowSelectPageSize="true" showExportToExcel="false" showExportAllToExcel="false" beforeSaveFunc="beforeSaveFuncValidateGridEditForm" beforeNewRowFunc="beforeSaveFuncValidateGridEditForm" beforeRowSelectFunc="beforeSaveFuncValidateGridEditForm" height="300" renderTo="divGrid1">
			<ge:grid.columnModel>
				<ge:grid.rowNumberer />
				<ge:grid.column header="aclConfigEntryId" dataIndex="aclConfigEntryId" hidden="true" />
				<ge:grid.column header="system.AclConfigEntry.propertyName" dataIndex="propertyName" width="260" />
			</ge:grid.columnModel>

		</ge:grid.baseGrid>
	</ge:window>
</ge:body>
<%@include file="/pages/common/bottom.jsp"%>
</html>